<!DOCTYPE HTML>
<html>
<head>
<title>桌面演练辅助应用系统后台管理</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link href="__UI__/css/bs3/dpl.css" rel="stylesheet">
<link href="__UI__/css/bs3/bui.css" rel="stylesheet">
<link href="__UI__/css/main.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript">
function toClearCache(){
	BUI.Message.Confirm('确认要清空缓存记录么？',function(){
		$.ajax({
			url:'{:U("Admin/Index/cache")}',
			dataType:'json',
			success:function(data){
				if(data.status == 'y'){
					BUI.Message.Alert(data.info);
				}else{
					BUI.Message.Alert('系统缓存清除失败');
				}
			}
		});
	},'question');
}
</script>
</head>
<body>
<div class="content">
	<div class="dl-main-nav">
		<div class="dl-inform"><div class="dl-inform-title">贴心小秘书<s class="dl-inform-icon dl-up"></s></div></div>
		<ul id="J_Nav"  class="nav-list ks-clear">
			<li class="nav-item dl-selected"><div class="nav-item-inner">系统管理</div></li>
            <li>
				<div class="dl-log">
					<a href="javascript:toClearCache();" class="dl-log-quit">[清除缓存]</a>
					<a href="{:U('Admin/Public/logout')}" title="退出系统" class="dl-log-quit">[退出系统]</a>
				</div>
			</li>
		</ul>
	</div>
	<ul id="J_NavContent" class="dl-tab-conten"></ul>
</div>
<script type="text/javascript" src="__UI__/js/jquery-1.8.1.min.js"></script>
<script type="text/javascript" src="__UI__/js/bui.js"></script>
<script type="text/javascript" src="__UI__/js/config.js"></script>
<script>
BUI.use('common/main',function(){
	var config = [{
		id:'user',
		homePage:'user',
		menu:[{
			text:'管理员管理',
			items:[
			  	{id:'user',text:'管理员管理',href:'{:U("User/index")}'},
			]
		},{
			text:'用户管理',
			items:[
				{id:'member2',text:'监管用户',href:'{:U("Member/index", array("gid"=>2))}'},
			  	{id:'member1',text:'普通用户',href:'{:U("Member/index", array("gid"=>1))}'},
			]
		},{
			text:'日志管理',
			items:[
				{id:'action',text:'日志设置',href:'{:U("Action/index")}'},
			  	{id:'action_log',text:'用户日志',href:'{:U("ActionLog/index")}'},
			]
		}]
	}];

	new PageUtil.MainPage({
		modulesConfig:config
	});	
});

</script>
</body>
</html>